home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 007 / tone.arc / DELAY.ASM next >
Assembly Source File  |  1985-11-26  |  640b  |  18 lines

  1. ; ROUTINE TO DELAY SPECIFIED NUMBER OF MILLISECONDS
  2. delay   proc    far
  3. ;
  4.         push    cx              ; save registers
  5. ;
  6. delay1:
  7.         push    cx              ; save counter
  8.         mov     cx,260          ; timing constant
  9. delay2:
  10.         loop    delay2          ; small loop
  11.         pop     cx              ; restore counter
  12.         loop    delay1          ; loop to count milliseconds
  13. ;
  14.         pop     cx              ; restore registers
  15.         ret
  16. ;
  17. delay   endp
  18.